

*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}









/*------------------------------- nav logo --------------------*/

.nav-logo{
    position: relative;
    display: flex;
    width: 100%;
    height: auto;
    top: 1.5rem;
    left: 1.5rem;
    }
    
    .logo-image {
    position: fixed;
    width: 200px;
    height: 25px;
    z-index: 10;
    }

/*----------------------------------end nav logo -----------------*/














/*----------------------------------- start type of charity grids ------------------------------*/

.charity-grid-title {
    text-align: center;
    letter-spacing: 3px;
    margin-top: 100px;
    font-size: 20px;
    text-transform: uppercase;
    
  }
  
  @media screen and (max-width: 1100px) {
    .charity-grid-title {
    font-size: 15px;
     }
  }
  
  @media screen and (max-width: 1000px) {
    .charity-grid-title {
    font-size: 14px;
     }
  }
  
  @media screen and (max-width: 900px) {
    .charity-grid-title {
    font-size: 13px;
     }
  }
  
  @media screen and (max-width: 800px) {
    .charity-grid-title {
    font-size: 12px;
     }
  }
  
  @media screen and (max-width: 600px) {
    .charity-grid-title {
    font-size: 10px;
     }
  }
  
  
  
  
 


  .charity-grid-container {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 25px;
    padding: 10px;
    margin-bottom: 100px;
}

.charity-grid-container > div {
  text-align: center;
  padding: 10px 5px;
  border-radius: 8px;
  cursor: pointer;
}






.charity-grid-container a {
    position: relative;
    display: flex;
    font-size: 1.2em;
    padding: 0.7em 1.4em;
    background-color: #ffc004;
    text-decoration: none;
    border: none;
    border-radius: 0.5em;
    color: #000000;
    box-shadow: 0.5em 0.5em 0.5em rgba(0, 0, 0, 0.3);
    justify-content: center;
  }
  
  .charity-grid-container a::before {
    position: absolute;
    content: '';
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(33, 33, 33, 1) 0%,
     rgb(255, 255, 255) 50%, rgba(150, 4, 31, 1) 50%, rgba(191, 4, 38, 1) 60%);
    border-radius: 0 0 0.5em 0;
    box-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, 0.3);
    transition: 0.3s;
  }
  
  .charity-grid-container a:hover::before {
    width: 2.5em;
    height: 2.5em;
  }
  
  .charity-grid-container a:active {
    box-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.3);
    transform: translate(0.1em, 0.1em);
  }

  
  






@media only screen and (max-width: 1000px) {
  .charity-grid-container div a {
    font-size: 15px;
    font-weight: 100;
    padding-left: 2px;
    padding-right: 2px;
  }
}


@media only screen and (max-width: 900px) {
  .charity-grid-container div a {
    font-size: 14px;
    font-weight: 100;
    padding-left: 2px;
    padding-right: 2px;
  }
}
  

  
@media only screen and (max-width: 800px) {
  .charity-grid-container div a {
    font-size: 13px;
    font-weight: 100;
    padding-left: 2px;
    padding-right: 2px;
  }
}

  
  @media only screen and (max-width: 700px) {
    .charity-grid-container div a {
      font-size: 12px;
      font-weight: 100;
      padding-left: 2px;
      padding-right: 2px;
    }
  }
  
  @media only screen and (max-width: 600px) {
    .charity-grid-container div a {
      font-size: 11px;
      font-weight: 100;
      padding-left: 2px;
      padding-right: 2px;
    }
  }
  
  @media only screen and (max-width: 500px) {
    .charity-grid-container div a {
      font-size: 10px;
      font-weight: 100;
      padding-left: 2px;
      padding-right: 2px;
    }
  }
  
  @media only screen and (max-width: 400px) {
    .charity-grid-container div a {
      font-size: 9px;
      font-weight: 100;
      padding-left: 2px;
      padding-right: 2px;
    }
  }
  
  @media only screen and (max-width: 300px) {
    .charity-grid-container div a {
      font-size: 8px;
      font-weight: 100;
      padding-left: 2px;
      padding-right: 2px;
    }
  }
/*----------------------------------- end type of charity grids ------------------------------*/

















/*--------------------------------- start charity  automatic line gallery ------------------*/

.charity-automatic-line-gallery-title {
  text-align: center;
  letter-spacing: 3px;
  margin-top: 150px;
  font-size: 25px;
  text-transform: capitalize;
  width: 100%;
  height: auto;
  padding: 3px;
  background-color: rgb(3, 14, 100);
  color: #FCFCFC;
}

@media screen and (max-width: 1100px) {
  .charity-automatic-line-gallery-title {
  font-size: 15px;
   }
}

@media screen and (max-width: 1000px) {
  .charity-automatic-line-gallery-title {
  font-size: 14px;
   }
}

@media screen and (max-width: 900px) {
  .charity-automatic-line-gallery-title {
  font-size: 13px;
   }
}

@media screen and (max-width: 800px) {
  .charity-automatic-line-gallery-title {
  font-size: 12px;
   }
}

@media screen and (max-width: 600px) {
  .charity-automatic-line-gallery-title {
  font-size: 10px;
   }
}


.slide-box {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 100px;
width: 100%;
height: 500px;
font-family: 'Poppins', sans-serif;
overflow: hidden;
perspective: clamp(400px, 100%, 500px);
background-color: rgb(255, 255, 255);
}

.slide-box::before {
top: 0;

}

.slide-box::after {
bottom: 0;
}

.gallery {
display: flex;
gap: 1vw;
max-width: 100%;
min-width: 280px;
height: 500px;

}

.gallery_line {
display: flex;
flex-direction: column;
gap: 1vw;
height: fit-content;
animation: slide 30s linear infinite;
}

.gallery_line:hover {
animation-play-state: paused;
cursor: pointer;
}

.gallery_line:nth-child(2) {
animation-direction: reverse;
}

.gallery_line img {
flex: 1 1 auto;
width: 100%;
object-fit: cover;
}

.gallery_line img:hover {
transform: scale(1.05);
transition: all 300ms;
}

@keyframes slide {
from {
    transform: translatey(0);
}

100% {
    transform: translatey(-50%);
}
}

/*----------------- end charity  automatic line gallery ----------------------------------*/

















/*------------------------------------ start charity  contact details ------------------------------------*/



/* ------ start contact title-----------------*/


.contact-title {
text-align: center;
letter-spacing: 3px;
margin-top: 150px;
font-size: 25px;
text-transform: capitalize;
width: 100%;
height: auto;
padding: 3px;
background-color: rgb(6, 17, 92);
color: #FCFCFC;
}

@media screen and (max-width: 1100px) {
.contact-title {
font-size: 15px;
 }
}

@media screen and (max-width: 1000px) {
.contact-title {
font-size: 14px;
 }
}

@media screen and (max-width: 900px) {
.contact-title {
font-size: 13px;
 }
}

@media screen and (max-width: 800px) {
.contact-title {
font-size: 12px;
 }
}

@media screen and (max-width: 600px) {
.contact-title {
font-size: 10px;
 }
}

/* ------ end contact title-----------------*/


.cont-back {
display: flex;
position: relative;
width: 100%;
height: auto;
background-color: rgb(0, 9, 70);
justify-content: center;
}

.resident {
position: relative;
display: inline-flex;
width: 280px;
height: auto;
margin: 20px;
font-size: 20px;
flex-direction: row;
color: #ffffff;
}
.resident img{
position: relative;
width: 40px;
height: 40px;
margin-right: 10px;
vertical-align: middle;
} 


.phone {
position: relative;
display: inline-flex;
width: 280px;
height: auto;
flex-direction: row;
margin-top: 50px;
margin-left: 15px;
}
.phone img {
position: relative;
width: 40px;
height: 40px;
margin-right: 5px;
vertical-align: middle;
}

.wp-no {
margin-top: 10px;
color: #FEFEFE;
font-size: 20px;
margin-left: 6px;
}

.email {
position: relative;
display: inline-flex;
width: 280px;
height: auto;
flex-direction: row;
align-content: center;
margin-top: 50px;
margin-left: 10px;
}
.email img {
position: relative;
width: 40px;
height: 40px;
margin-right: 5px;
vertical-align: middle;

}

.ad-email {
margin-top: 10px;
color: #FEFEFE;
font-size: 18px;
letter-spacing: 1px;
font-family: Arial, Helvetica, sans-serif;
}

.media {
 position: relative;
display: inline-table;
width: 280px;
height: auto;
margin: 20px;
flex-direction: row;
align-content: center;
justify-content: center;
margin-top: 50px;
}

.media a img {
margin: 5px;
vertical-align: middle;
}


@media screen and (max-width: 650px) {
.cont-back {
    flex-direction: column;
    height: auto;
}
}



@media screen and (max-width: 750px) {

 .resident {
    width: auto;
    height: auto;
    margin-left: 10px;
    font-size: 15px;
}

.phone {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.email {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.media {
    width: auto;
    height: auto;
    margin-bottom: 30px;
    margin-left: 10px;
}

.wp-no {
    font-size: 15px;
}
.ad-email {
    font-size: 15px;
}
}


@media screen and (max-width: 414px) {

 .resident {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.phone {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.email {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.media {
    width: auto;
    height: auto;
    margin-bottom: 30px;
    margin-left: 10px;
}

.wp-no {
    font-size: 15px;
}
.ad-email {
    font-size: 15px;
}
}


@media screen and (max-width: 412px) {

 .resident {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.phone {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.email {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.media {
    width: auto;
    height: auto;
    margin-bottom: 30px;
    margin-left: 10px;
}

.wp-no {
    font-size: 15px;
}
.ad-email {
    font-size: 15px;
}
}


@media screen and (max-width: 393px) {

 .resident {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.phone {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.email {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.media {
    width: auto;
    height: auto;
    margin-bottom: 30px;
    margin-left: 10px;
}

.wp-no {
    font-size: 13px;
}
.ad-email {
    font-size: 13px;
}
}


@media screen and (max-width: 390px) {

 .resident {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.phone {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.email {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.media {
    width: auto;
    height: auto;
    margin-bottom: 30px;
    margin-left: 10px;
}

.wp-no {
    font-size: 13px;
}
.ad-email {
    font-size: 13px;
}
}


@media screen and (max-width: 375px) {

 .resident {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.phone {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.email {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.media {
    width: auto;
    height: auto;
    margin-bottom: 30px;
    margin-left: 10px;
}

.wp-no {
    font-size: 13px;
}
.ad-email {
    font-size: 13px;
}
}


@media screen and (max-width: 360px) {

 .resident {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.phone {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.email {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.media {
    width: auto;
    height: auto;
    margin-bottom: 30px;
    margin-left: 10px;
}

.wp-no {
    font-size: 13px;
}
.ad-email {
    font-size: 13px;
}
}


@media screen and (max-width: 320px) {

 .resident {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.phone {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.email {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.media {
    width: auto;
    height: auto;
    margin-bottom: 30px;
    margin-left: 10px;
}

.wp-no {
    font-size: 13px;
}
.ad-email {
    font-size: 13px;
}
}


@media screen and (max-width: 280px) {

 .resident {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.phone {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.email {
    width: auto;
    height: auto;
    margin-left: 10px;
}

.media {
    width: auto;
    height: auto;
    margin-bottom: 30px;
    margin-left: 10px;
}

.wp-no {
    font-size: 13px;
}
.ad-email {
    font-size: 13px;
}
}


/*------------------------------------ end charity contact details --------------------------------------*/




